﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using RenAi.Medical.DAL;
using RenAi.Medical.Model;

namespace RenAi.Medical.BLL
{
    public class NewBLL
    {
        NewDAL newdal = new NewDAL();
        /// <summary>
        /// 获取新闻资讯信息
        /// </summary>
        /// <returns></returns>
        public DataTable GetNewsAll()
        {
            return newdal.GetNewsAll();
        }
        /// <summary>
        /// 删除新闻
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int DelNew(string news_id)
        {
            return newdal.DelNew(news_id);
        }/// <summary>
        /// 根据id获取新闻资讯信息
        /// </summary>
        /// <param name="news_id"></param>
        /// <returns></returns>
        public DataTable GetNewsById(int news_id)
        {
            return newdal.GetNewsById(news_id);
        }
        /// <summary>
        /// 获取新闻类型信息
        /// </summary>
        /// <returns></returns>
        public DataTable GetNewtypeAll()
        {
            return newdal.GetNewtypeAll();
        }
    }
}
